/*ã€€ã‚¢ã‚³ãƒ¼ãƒ‡ã‚£ã‚ªãƒ³ã€€*/
$(function() {
	var width = $(window).width();
	
	if(width <= 750){		
		$(".accordione").hover(function(){
			$(this).css({"cursor":"pointer","pointer-events":"all"}); 
		});
		$(".hidden01").css("display","none");
		$(".accordione").toggle(
			function(){
			$(this).next().slideDown("fast");
			$(this).parent().find(".accordione span").removeClass("icon-arrow");
			$(this).parent().find(".accordione span").addClass("icon-arrowup");
			$(this).parent().addClass("bg-section");
			},
			function(){
			$(this).next().slideUp("fast");
			$(this).parent().find(".accordione span").addClass("icon-arrow");
			$(this).parent().find(".accordione span").removeClass("icon-arrowup");
			$(this).parent().removeClass("bg-section");
			}
		);

	}
	
	$(window).resize(function() {
		var width = $(window).width();		
		$(".bg-section").removeClass("bg-section");
		if(width <= 750){		
			$(".accordione").css({"cursor":"pointer","pointer-events":"all"}); 
			$(".hidden01").css("display","none");
			$(".accordione").toggle(
				function(){
				$(this).next().slideDown("fast");
				$(this).parent().find(".accordione span").removeClass("icon-arrow");
				$(this).parent().find(".accordione span").addClass("icon-arrowup");
				$(this).parent().addClass("bg-section");
				},
				function(){
				$(this).next().slideUp("fast");
				$(this).parent().find(".accordione span").addClass("icon-arrow");
				$(this).parent().find(".accordione span").removeClass("icon-arrowup");
				$(this).parent().removeClass("bg-section");
				}
			);

		}else{
			$(".hidden01").css("display","block");
			$(".accordione").css({"cursor":"default","pointer-events":"none"}); 
		}


		
	});
	
});

$(function() {
	
	$(".accordione01").hover(function(){
		$(this).css({"cursor":"pointer","pointer-events":"all"}); 
	});
	$(".hidden02").css("display","none");
	$(".accordione01").toggle(
		function(){
		$(this).next().slideDown("fast");
		$(this).parent().find(".question > span").removeClass("icon-action").text('CLOSE');
		$(this).parent().find(".question > span").addClass("icon-actionup");
		},
		function(){
		$(this).next().slideUp("fast");
		$(this).parent().find(".question > span").addClass("icon-action").text('ANSWER');
		$(this).parent().find(".question > span").removeClass("icon-actionup");
		}
	);


	$(window).resize(function() {
		$(".accordione01").css({"cursor":"pointer","pointer-events":"all"}); 
		$(".hidden02").css("display","none");

		$(".accordione01").toggle(
			function(){
			$(this).next().slideDown("fast");
			$(this).parent().find(".question > span").removeClass("icon-action").text('CLOSE');
			$(this).parent().find(".question > span").addClass("icon-actionup");
			},
			function(){
			$(this).next().slideUp("fast");
			$(this).parent().find(".question > span").addClass("icon-action").text('ANSWER');
			$(this).parent().find(".question > span").removeClass("icon-actionup");
			}
		);
	});
});
